package com.nikkerball.apps.darkhorse.model.evaluation.subject;

import com.nikkerball.apps.darkhorse.model.base.ValueObject;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Represents an Observation for a Subject Evaluation
 *
 * @author marius (created on 2010-12-09)
 */
@Entity
@Table(name = "SubjectObservation")
public class SubjectObservation extends ValueObject {

    // ----- instance fields -----

    private SubjectEvaluation subjectEvaluation;

    // ----- public methods -----

    @ManyToOne
    @JoinColumn(name = "subjectEvaluation_Id", nullable = false)
    public SubjectEvaluation getSubjectEvaluation() {
        return this.subjectEvaluation;
    }

    public void setSubjectEvaluation(SubjectEvaluation subjectEvaluation) {
        this.subjectEvaluation = subjectEvaluation;
    }
}
